package com.atzly.community.service.impl;

import com.atzly.community.entity.LoginTicket;
import com.atzly.community.mapper.LoginTicketMapper;
import com.atzly.community.service.LoginTicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zlysimida
 * @date 2021/8/26 - 15:53
 */
@Service
@Deprecated
public class LoginTicketServiceImpl implements LoginTicketService {

    @Autowired
    private LoginTicketMapper loginTicketMapper;

    @Override
    public int insertTicket(LoginTicket loginTicket) {
        return loginTicketMapper.insertTicket(loginTicket);
    }

    @Override
    public LoginTicket selectTicket(String ticket) {
        return loginTicketMapper.selectTicket(ticket);
    }

    @Override
    public int updateTicketStatus(String ticket, int status) {
        return loginTicketMapper.updateTicketStatus(ticket,status);
    }

    @Override
    public int updateTicketPasswordAndStatus(String ticket, String password,int status) {
        return loginTicketMapper.updateTicketPasswordAndStatus(ticket,password,status);
    }
}
